home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / earthlink / nscomm / java40.jar / java / lang / Object.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  1.3 KB  |  45 lines

  1. package java.lang;
  2.  
  3. public class Object {
  4.    public final native Class getClass();
  5.  
  6.    public native int hashCode();
  7.  
  8.    public boolean equals(Object var1) {
  9.       return this == var1;
  10.    }
  11.  
  12.    protected native Object clone() throws CloneNotSupportedException;
  13.  
  14.    public String toString() {
  15.       return this.getClass().getName() + "@" + Integer.toHexString(this.hashCode());
  16.    }
  17.  
  18.    public final native void notify();
  19.  
  20.    public final native void notifyAll();
  21.  
  22.    public final native void wait(long var1) throws InterruptedException;
  23.  
  24.    public final void wait(long var1, int var3) throws InterruptedException {
  25.       if (var1 < 0L) {
  26.          throw new IllegalArgumentException("timeout value is negative");
  27.       } else if (var3 >= 0 && var3 <= 999999) {
  28.          if (var3 >= 500000 || var3 != 0 && var1 == 0L) {
  29.             ++var1;
  30.          }
  31.  
  32.          this.wait(var1);
  33.       } else {
  34.          throw new IllegalArgumentException("nanosecond timeout value out of range");
  35.       }
  36.    }
  37.  
  38.    public final void wait() throws InterruptedException {
  39.       this.wait(0L);
  40.    }
  41.  
  42.    protected void finalize() throws Throwable {
  43.    }
  44. }
  45.